<?php

namespace App\Http\Requests\Role;

use Illuminate\Support\Facades\Auth;
use Illuminate\Foundation\Http\FormRequest;

class QueryRoleCollection extends FormRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
//		$user = Auth::user();
//
//		if ($user->hasRole('admin') || $user->hasPermission('system-role-index')) {
//			return true;
//		}

		return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            //
        ];
    }
}
